package com.example.xpvideo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户表(User)实体类
 *
 * @author 杨丽辉
 * @since 2021-08-03 01:01:30
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("ls_user")
public class User implements Serializable {
    private static final long serialVersionUID = -60042121738117265L;
        /**
    *主键
    * id
    * isnull 1
    */
        private Integer id;

    /**
    * 账号即手机号
    * isnull 0
    */            private String account;
    /**
    * 加密密码
    * isnull 0
    */            private String pwd;
    /**
    * 明文密码
    * isnull 0
    */            private String openPwd;
    /**
    * 头像
    * isnull 0
    */            private String avatar;
    /**
    * 昵称
    * isnull 0
    */            private String nickname;
    /**
    * 注册时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime createTime;
    /**
    * 推荐码
    * isnull 0
    */            private String recommendCode;
    /**
    * 直接上级账号
    * isnull 0
    */            private String directSuperAccount;
    /**
    * 状态：0：冻结；1：正常
    * isnull 0
    */            private String stage;
    /**
    * 间接上级账号
    * isnull 0
    */            private String indirectSuperAccount;
    /**
    * 最后登录ip
    * isnull 0
    */            private String finalLoginIp;
    /**
    * 最后登录时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime finalLoginTime;
    /**
    * 信息最新更新时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime upateTime;
    /**
    * 性别；0男；1女
    * isnull 0
    */            private Integer sex;
    /**
    * 用户身份。0首页商户；1本地商户；2普通用户;3本地商户管理员
    * isnull 0
    */            private Integer type;
    // 频道标签
    private String labelId;

    public String getLabelId() {
        return labelId;
    }

    public void setLabelId(String labelId) {
        this.labelId = labelId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
        
    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
        
    public String getOpenPwd() {
        return openPwd;
    }

    public void setOpenPwd(String openPwd) {
        this.openPwd = openPwd;
    }
        
    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
        
    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
        
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
        
    public String getRecommendCode() {
        return recommendCode;
    }

    public void setRecommendCode(String recommendCode) {
        this.recommendCode = recommendCode;
    }
        
    public String getDirectSuperAccount() {
        return directSuperAccount;
    }

    public void setDirectSuperAccount(String directSuperAccount) {
        this.directSuperAccount = directSuperAccount;
    }
        
    public String getStage() {
        return stage;
    }

    public void setStage(String stage) {
        this.stage = stage;
    }
        
    public String getIndirectSuperAccount() {
        return indirectSuperAccount;
    }

    public void setIndirectSuperAccount(String indirectSuperAccount) {
        this.indirectSuperAccount = indirectSuperAccount;
    }
        
    public String getFinalLoginIp() {
        return finalLoginIp;
    }

    public void setFinalLoginIp(String finalLoginIp) {
        this.finalLoginIp = finalLoginIp;
    }
        
    public LocalDateTime getFinalLoginTime() {
        return finalLoginTime;
    }

    public void setFinalLoginTime(LocalDateTime finalLoginTime) {
        this.finalLoginTime = finalLoginTime;
    }
        
    public LocalDateTime getUpateTime() {
        return upateTime;
    }

    public void setUpateTime(LocalDateTime upateTime) {
        this.upateTime = upateTime;
    }
        
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
        
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"account\":" + account +
                            " ,\"pwd\":" + pwd +
                            " ,\"openPwd\":" + openPwd +
                            " ,\"avatar\":" + avatar +
                            " ,\"nickname\":" + nickname +
                            " ,\"createTime\":" + createTime +
                            " ,\"recommendCode\":" + recommendCode +
                            " ,\"directSuperAccount\":" + directSuperAccount +
                            " ,\"stage\":" + stage +
                            " ,\"indirectSuperAccount\":" + indirectSuperAccount +
                            " ,\"finalLoginIp\":" + finalLoginIp +
                            " ,\"finalLoginTime\":" + finalLoginTime +
                            " ,\"upateTime\":" + upateTime +
                            " ,\"sex\":" + sex +
                            " ,\"type\":" + type +
                  '}';
    }


}
